package scp_server;

import java.io.IOException;
import java.net.ServerSocket;
import java.net.Socket;
import java.net.UnknownHostException;

import server_thread.FileUploadServerThread;


public class ScpServer {
	
	public static void main(String[] args) throws UnknownHostException, IOException {
		new ScpServer().start();
	}
	
	public void start() throws IOException{
		ServerSocket server = new ServerSocket(8008);
		while(true){
			FileUploadServerThread fThread = new FileUploadServerThread(server.accept());
			Thread thread = new Thread(fThread);
			thread.start();
		}
		
		
	}


}
